﻿@model Int32
<div class="dh">
	<div class="dh_left"></div>
    <div class="dh_center" id="menubox">
        <div class="dh_list">
            <div class="dh_list_1"><a href="@Url.Action("index", "member")">首页</a></div>
            <div class="dh_list_1"><a href="@Url.Action("index", "member")">会员中心</a></div>
            <div class="dh_list_1"><a href="@Url.Action("index", "site")">优化管理</a></div>
            <div class="dh_list_1"><a href="@Url.Action("index", "report")">查看报表</a></div>
            <div class="dh_list_1"><a href="@Url.Action("index", "pay")">在线充值</a></div>
            @if(IsLogin && User.IsAdmin)
            {
            <div class="dh_list_1"><a href="@Url.Action("userlist", "manager")">系统管理</a></div>
            }
            <div class="dh_list_1"><a href="@Url.Action("logout", "account")">退出系统</a></div>
        </div>
        <div class="dh_list1" style="display:none"></div>
        <div class="dh_list1" style="display:none">
            <a href="@Url.Action("index", "member")">资料管理</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
            <a href="@Url.Action("changepassword", "member")">密码管理</a>
        </div>
        <div class="dh_list1" style="display:none">
            <a href="@Url.Action("index", "site")">网站管理</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
            <a href="@Url.Action("addsite", "site")">添加网站</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
            <a href="@Url.Action("keywords", "site")">关键词管理</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
            <a href="@Url.Action("addkeyword", "site")">添加关键词</a>
        </div>
        <div class="dh_list1" style="display:none">
            <a href="@Url.Action("index", "report")">查看报表</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
            <a href="@Url.Action("seologs", "report")">消费记录</a>
        </div>
        <div class="dh_list1" style="display:none">
            <a href="@Url.Action("index", "pay")">在线充值</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
            <a href="@Url.Action("offline", "pay")">线下充值</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
            <a href="@Url.Action("payrecord", "pay")">充值记录</a>
        </div>
        <div class="dh_list1" style="display:none"> 
            <a href="@Url.Action("userlist", "manager")">用户列表</a>
        </div>
        <script type="text/javascript">
            (function () {
                var i=@Model;
                $($("#menubox .dh_list .dh_list_1").get(i)).addClass("bj");
                $($("#menubox").children().get(i + 1)).show();
                $("#menubox .dh_list .dh_list_1").each(function (index, item) {
                    if (index == i) {
                        $(item).addClass("bj");
                    } else {
                        $(item).mouseover(function () {
                            $(this).addClass("bj");
                        }).mouseleave(function () {
                            $(this).removeClass("bj");
                        });
                    }
                });
            })();
        </script>
    </div>
    <div class="dh_right"></div>
</div>
